<template>
  <div>
    {{ $route }}
  </div>
</template>

<script setup lang="ts">
// const arr = [38, 27, 43, 3, 9, 82, 10]
// function mergeSort(arr: Array<number>) {
//   const len = arr.length
//   if (len < 2) {
//     return arr
//   }
//   const middle = Math.floor(len / 2)
//   const left = arr.slice(0, middle)
//   const right = arr.slice(middle)
//   // console.log('left-' + left, 'right-' + right)
//   return merge(mergeSort(left), mergeSort(right))
// }
// function merge(left: Array<number>, right: Array<number>) {
//   const result = []

//   while (left.length && right.length) {
//     if (left[0] <= right[0]) {
//       result.push(left.shift())
//     } else {
//       result.push(right.shift())
//     }
//   }

//   while (left.length) {
//     result.push(left.shift())
//   }
//   while (right.length) {
//     result.push(right.shift())
//   }
//   return result
// }

// console.log(mergeSort(arr))
</script>
